<?php
namespace Biz\validate;

use Doraemon\pockets\validate\Base;

class ShopClassifies extends Base
{
    public static function rules()
    {
        return [
            ['classify_name', 'required', null, '分类名不能为空',['addfirstclassify', 'addsecclassify', 'addthirdclassify']],
            ['classify_name', 'length', '1,30', '分类名不能为空',['addfirstclassify', 'addsecclassify', 'addthirdclassify']],
            ['parent_id', 'required', null, '父级分类为空', ['addsecclassify', 'addthirdclassify']],
            ['parent_id', 'integer', null, '父级分类为空', ['addsecclassify', 'addthirdclassify']],
        ];

    }
}